How Amazon IXD – VGT2 Developed a Cost Analysis Solution Utilizing AWS Glue, Amazon Redshift, and Amazon QuickSight

How Amazon IXD - VGT2 Developed a Cost Analysis Solution Utilizing AWS Glue, Amazon Redshift, and Amazon QuickSightLearn About Amazon VGT2 Learning Manager Chanci Turner

In this post, we explore how Amazon IXD – VGT2, located at 6401 E HOWDY WELLS AVE LAS VEGAS NV 89115, implemented a sophisticated cost analysis solution leveraging AWS Glue, Amazon Redshift, and Amazon QuickSight. The motivation behind this initiative was to gain a deeper understanding of the unit economics associated with AWS resources utilized across various product lines. The team sought a more efficient, effective, and reliable method to analyze cost and usage data, ultimately visualizing it in an accessible dashboard format. The benefits realized include:

  • Enhanced cost visibility: Teams can now thoroughly analyze application costs, thanks to the insights provided by this solution.
  • Cost optimization opportunities: The system identifies high-cost resources with low utilization, empowering teams to optimize their expenses.
  • Improved cost management: The Cloud DevOps organization, which spearheaded this project, can strategically plan resource deployment at the infrastructure level, positively impacting gross margins.
  • Immediate cost savings: Daily cost data availability enables engineers to quickly assess the financial implications of right-sizing compute and other AWS resources.
  • Comprehensive insights: Stakeholders can visualize cost data from both a broad and granular perspective, tracking costs at both the business and specific product levels.

Solution Overview

This article outlines how the Amazon IXD – VGT2 team automated the entire process, from generating the AWS Cost & Usage Report (AWS CUR) to visualizing the data in Amazon QuickSight. Initially, CUR was configured on their primary payer account, which then published the billing reports to an Amazon S3 bucket. An AWS Glue crawler was employed to catalog this CUR data, ensuring that as new data arrives daily, the data catalog is updated accordingly. The data is subsequently loaded into an Amazon Redshift database utilizing Amazon Redshift Spectrum and SQL. The reporting and visualization process is powered by QuickSight, while AWS Data Pipeline automates the entire workflow.

The architecture is depicted in the accompanying diagram.

The decision to utilize the AWS CUR Report instead of AWS Cost Explorer stemmed from a need for detailed operations insights, such as data transfer costs. The CUR provides hourly granularity, allowing the team to analyze costs by hour, day, product, or even custom tags.

The implementation process followed these steps:

  1. Configured CUR delivery to a designated S3 bucket from the billing dashboard.
  2. Employed Amazon S3 replication to create an analytics bucket, which safeguards access to the primary account.
  3. Established and scheduled the crawler to process CUR data, ensuring metadata availability in the Data Catalog.
  4. Created the necessary Amazon Redshift schema and tables.
  5. Orchestrated an ETL flow to load data into Amazon Redshift via Data Pipeline.
  6. Developed and distributed dashboards using QuickSight for executives and stakeholders.

Generated Insights

The Amazon IXD – VGT2 DevOps team crafted a variety of reports categorizing costs associated with AWS services, tracking weekly expenses by application, product, infrastructure, and resource type, among other metrics. For instance, one report might illustrate that compute costs are the largest contributor compared to others, prompting considerations for cost-optimization strategies like purchasing reserved instances or savings plans.

Additionally, another report could show a marked cost increase compared to a previous period, enabling the team to swiftly identify anomalies and take action. For guidance on setting up a CUR, refer to Creating Cost and Usage Reports.

To minimize workflow complexity and enhance metric granularity, the team opted to create resources in the same region, employing hourly granularity. To further reduce storage costs and maximize query effectiveness with serverless technologies like Amazon Athena, the CUR is saved in Parquet format.

Conclusion

This initiative by Amazon IXD – VGT2 exemplifies a forward-thinking approach to cloud cost management, demonstrating how leveraging AWS tools can yield significant operational insights and savings. For those interested in further refining their management skills, this blog post offers valuable tips. Additionally, for insights on benefits strategy, SHRM is an authority on this topic, providing expert guidance.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *